<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>登录</title>
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
    <!-- main begin-->
    <div class="main">
        <div class="sidebar">
            <p><img src="/images/img1.jpg" width="443" height="314" alt="" /></p>
        </div>
        <div class="sidebarg">
            <form action="/toLogin" method="post">
                <div class="login">
                    <dl>
                        <dt class="blues">用户登陆</dt>
                        <dd><label for="name">用户名：</label><input type="text" class="inputh" placeholder="常用邮箱" id="name" name="userName" autocomplete="off" value="旺财"/></dd>
                        <dd><label for="password">密 码：</label><input type="text" class="inputh" placeholder="密码" id="password" name="password" autocomplete="off" value="8888"/></dd>
                        <dd>
                            <label class="lf" for="passwords">验证码：</label>
                            <input type="text" class="inputh inputs lf" placeholder="验证码" id="passwords" name="code" autocomplete="off"/>
                            <span class="wordp lf">
                                <img src="/getCode"  width="96" height="27" alt="" onclick="getCode(event)"/>
                            </span>
                            <span class="blues lf"><a href="" title="">看不清</a></span>
                        </dd>
                        <dd>
                            <input name=""  type="checkbox" id="rem_u"  />
                            <span for="rem_u">下次自动登录</span>
                            <span th:text="${msg}" style="color: red"></span>
                        </dd>
                        <dd class="buttom">
                            <input name="" type="submit" value="登 录" class="spbg buttombg f14 lf" />
                         <a href="/register" class="spbg buttombg f14 lf" target="_self">注 册</a>
                            <span class="blues  lf"><a href="/forget" title="">忘记密码?</a></span>
                            <div class="cl"></div>
                        </dd>

                    </dl>
                </div>
            </form>
        </div>
        <div class="cl"></div>
    </div>
    <!-- main end-->

    <!-- footer begin-->
</div>
<!--footer end-->

</div>
</body>
<script>
    function getCode (ev) {
        // console.log(ev)
        // console.log(this)
        var url = '/getCode?time='+new Date().getTime()
        ev.target.src=url
    }
</script>
</html>
